﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WZLY
{
    class HaoY :DLMB
    {
        public static QBHaoy[] xxcc=new QBHaoy[100];
        public static HaoY[] haoy = new HaoY[6];
        public QBHaoy QBhao1 { get; set; }
        public bool pdyhmy=false;
        public enum QBHaoy
        {
            li1=1,
            li2,
            li3,
            li4,
            li5,
            Shuji
        }
        public HaoY()
        { 
        }
        public HaoY(QBHaoy QBhao2)
        {
            this.QBhao1 = QBhao2;
            switch (QBhao1)
            {
                
                case QBHaoy.li1:
                    this.Bianhao = 1;
                    this.Name = "陈一叶";
                    this.QM = "这人很懒,没有签名";
                    this.XB1 = (XB)1;
                    this.DJ = 15;
                    this.XueLiang = 300;
                    this.WuGong = 10;
                    this.FaGong = 30;
                    this.WuKang = 10;
                    this.FaKang = 30;
                    this.pdyhmy = true;
                    break;
                case QBHaoy.li2:
                    this.Bianhao = 2;
                    this.Name = "伍祚松";
                    this.QM = "这人很懒,没有签名";
                    this.XB1 = (XB)1;
                    this.DJ = 16;
                    this.XueLiang = 500;
                    this.WuGong = 20;
                    this.FaGong = 10;
                    this.WuKang = 30;
                    this.FaKang = 20;
                    this.pdyhmy = true;
                    break;
                case QBHaoy.li3:
                    this.Bianhao = 3;
                    this.Name = "伍雨辉";
                    this.QM = "这人很懒,没有签名";
                    this.XB1 = (XB)1;
                    this.DJ = 15;
                    this.XueLiang = 300;
                    this.WuGong = 60;
                    this.FaGong = 10;
                    this.WuKang = 10;
                    this.FaKang = 10;
                    this.pdyhmy = true;
                    break;
                case QBHaoy.li4:
                    this.XueLiang = 600;
                    this.WuGong = 10;
                    this.FaGong = 10;
                    this.WuKang = 50;
                    this.FaKang = 20;
                    this.Bianhao = 4;
                    this.Name = "王奔";
                    this.QM = "这人很懒,没有签名";
                    this.XB1 = (XB)1;
                    this.DJ = 17;
                    this.pdyhmy = true;
                    break;
                case QBHaoy.li5:
                    this.XueLiang = 200;
                    this.WuGong = 80;
                    this.FaGong = 10;
                    this.WuKang = 10;
                    this.FaKang = 10;
                    this.Bianhao = 5;
                    this.Name = "罗东荣";
                    this.QM = "这人很懒,没有签名";
                    this.XB1 = (XB)1;
                    this.DJ = 14;
                    this.pdyhmy = true;
                    break;
                case QBHaoy.Shuji:
                    Random r = new Random();
                    this.Bianhao = r.Next(1, 50);
                    this.WuGong = r.Next(10, 50);
                    this.WuKang = r.Next(10, 50);
                    this.FaGong = r.Next(10, 50);
                    this.FaKang = r.Next(10, 50);
                    this.XueLiang = r.Next(200, 600);
                    break;
                default:
                    break;
            }
        }
    }
}
